package cn.yunyichina.provider.order.constant;

import lombok.Getter;

/**
 * Created by Lullaby on 2017/1/13.
 */
public interface OrderConst {

    String INSURANCE_ORDER = "1";

    enum OrderStatus {

        CREATED              (1, "创建"),
        TO_BE_CONFIRMED      (2, "待写单"),
        SUCCEED              (3, "成功"),
        FAILED               (4, "失败"),
        EXCEPTION            (5, "异常"),
        CHANGED              (6, "变更"),
        CANCELED             (7, "取消"),
        TIMEOUT              (8, "超时"),
        //面诊订单状态
        TREATMENT_TO_BE_PAID (100, "代缴面诊费"),
        TREATMENT_PAID       (101, "已缴面诊费"),
        TREATMENT_COMPLETED  (102, "订单已完成"),
        TREATMENT_CANCELED   (103, "订单已取消");

        @Getter
        private int status;

        @Getter
        private String desc;

        OrderStatus(int status, String desc) {
            this.status = status;
            this.desc = desc;
        }

    }

    enum PayStatus {

        NOT_PAID         (1, "未支付"),
        PAY_ACCEPTED     (2, "支付受理（调起收银台）"),
        PAID             (3, "已支付（收到支付成功的回调）"),
        PAY_FAILED       (4, "支付失败"),
        TO_BE_REFUND     (5, "待退费"),
        REFUND_ACCEPTED  (6, "退费受理"),
        REFUNDED         (7, "已退费"),
        PARTIAL_REFUNDED (8, "部分退费"),
        REFUND_FAILED    (9, "退费失败");

        @Getter
        private int status;

        @Getter
        private String desc;

        PayStatus(int status, String desc) {
            this.status = status;
            this.desc = desc;
        }

    }

}
